package com.system.test.base;

public class B extends A{

	
	public B() {
		System.out.println("B1.......");
	}
	
	public B(int id) {
		this.id = id;
		System.out.println("B2......." + id);
	}
	
	public static void main(String[] args) {
		A a = new B(1);
		B b = new B();
		b.id = 2;
		a.p();
	}
	
//	@Override
//	public void p() {
//		System.out.println("B......p:" + a.id);
//	}
}
